package com.ethink.order.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 吉客云销售单 更新请求对象
 *
 * @author default
 * @date 2022-11-25
 */
@Data
public class JkyTradeLogUpdateRequest {

    @Schema(description ="主键")
    private Long id;

    @Schema(description ="jky订单编号")
    private String tradeNo;

    @Schema(description ="jky订单状态")
    private Integer tradeStatus;

    @Schema(description ="是否出库")
    private Boolean ckFlag;

    @Schema(description ="出库时间")
    private Date ckTime;

    @Schema(description ="仓库编码")
    private String warehouseCode;

    @Schema(description ="仓库名称")
    private String warehouseName;

    @Schema(description ="jky创建时间")
    private String gmtCreate;

    @Schema(description ="jky最后修改时间")
    private String gmtModified;

    @Schema(description ="发货时间")
    private String consignTime;

    @Schema(description ="结算币种")
    private String chargeCurrency;

    @Schema(description ="店铺id")
    private String shopId;

    @Schema(description ="店铺名称")
    private String shopName;

    @Schema(description ="网店订单号")
    private String onlineTradeNo;

    @Schema(description ="下单时间")
    private String tradeTime;

    @Schema(description ="商品明细列表")
    private List<JkyTradeLogUpdateRequestMateItem> items;

    @Data
    public static class JkyTradeLogUpdateRequestMateItem {
        @Schema(description ="商品SKU")
        private String mateSku;

        @Schema(description ="销售数量")
        private Integer sellCount;

        @Schema(description ="销售单价")
        private BigDecimal sellPrice;
    }


}
